package com.huobi.swap.api.response.market;

import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@AllArgsConstructor
@Data
public class SwapHisOpenInterestResponse {
    /**
     * "status":"ok",
     * "data":{"symbol":"BTC","tick":[{"volume":3019.0000000000000000,"amount_type":1,"ts":1601017200000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1601013600000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1601010000000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1601006400000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1601002800000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600999200000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600995600000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600992000000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600988400000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600984800000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600981200000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600977600000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600974000000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600970400000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600966800000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600963200000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600959600000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600956000000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600952400000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600948800000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600945200000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600941600000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600938000000,"value":311835.830900000000000000000000000000000000},{"volume":3015.0000000000000000,"amount_type":1,"ts":1600934400000,"value":311422.666500000000000000000000000000000000},{"volume":3015.0000000000000000,"amount_type":1,"ts":1600930800000,"value":311422.666500000000000000000000000000000000},{"volume":3013.0000000000000000,"amount_type":1,"ts":1600927200000,"value":311216.084300000000000000000000000000000000},{"volume":3011.0000000000000000,"amount_type":1,"ts":1600923600000,"value":311009.502100000000000000000000000000000000},{"volume":3011.0000000000000000,"amount_type":1,"ts":1600920000000,"value":311009.502100000000000000000000000000000000},{"volume":1858.0000000000000000,"amount_type":1,"ts":1600916400000,"value":191914.863800000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600912800000,"value":178900.185200000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600909200000,"value":178900.185200000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600905600000,"value":178900.185200000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600902000000,"value":178900.185200000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600898400000,"value":178900.185200000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600894800000,"value":178900.185200000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600891200000,"value":178900.185200000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600887600000,"value":178900.185200000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600884000000,"value":178900.185200000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600880400000,"value":178900.185200000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600876800000,"value":178900.185200000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600873200000,"value":178900.185200000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600869600000,"value":178900.185200000000000000000000000000000000},{"volume":1712.0000000000000000,"amount_type":1,"ts":1600866000000,"value":176834.363200000000000000000000000000000000},{"volume":1712.0000000000000000,"amount_type":1,"ts":1600862400000,"value":176834.363200000000000000000000000000000000},{"volume":1712.0000000000000000,"amount_type":1,"ts":1600858800000,"value":176834.363200000000000000000000000000000000},{"volume":1712.0000000000000000,"amount_type":1,"ts":1600855200000,"value":176834.363200000000000000000000000000000000},{"volume":1712.0000000000000000,"amount_type":1,"ts":1600851600000,"value":176834.363200000000000000000000000000000000},{"volume":1712.0000000000000000,"amount_type":1,"ts":1600848000000,"value":176834.363200000000000000000000000000000000}],"contract_code":"BTC-USDT"},
     * "ts":1601018052709
     */
    private String status;
    private Long ts;
    private List<DataBean> data;

    @AllArgsConstructor
    @Data
    public static class DataBean {
        /**
         * "symbol":"BTC",
         * "tick":[{"volume":3019.0000000000000000,"amount_type":1,"ts":1601017200000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1601013600000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1601010000000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1601006400000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1601002800000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600999200000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600995600000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600992000000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600988400000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600984800000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600981200000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600977600000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600974000000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600970400000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600966800000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600963200000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600959600000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600956000000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600952400000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600948800000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600945200000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600941600000,"value":311835.830900000000000000000000000000000000},{"volume":3019.0000000000000000,"amount_type":1,"ts":1600938000000,"value":311835.830900000000000000000000000000000000},{"volume":3015.0000000000000000,"amount_type":1,"ts":1600934400000,"value":311422.666500000000000000000000000000000000},{"volume":3015.0000000000000000,"amount_type":1,"ts":1600930800000,"value":311422.666500000000000000000000000000000000},{"volume":3013.0000000000000000,"amount_type":1,"ts":1600927200000,"value":311216.084300000000000000000000000000000000},{"volume":3011.0000000000000000,"amount_type":1,"ts":1600923600000,"value":311009.502100000000000000000000000000000000},{"volume":3011.0000000000000000,"amount_type":1,"ts":1600920000000,"value":311009.502100000000000000000000000000000000},{"volume":1858.0000000000000000,"amount_type":1,"ts":1600916400000,"value":191914.863800000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600912800000,"value":178900.185200000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600909200000,"value":178900.185200000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600905600000,"value":178900.185200000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600902000000,"value":178900.185200000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600898400000,"value":178900.185200000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600894800000,"value":178900.185200000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600891200000,"value":178900.185200000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600887600000,"value":178900.185200000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600884000000,"value":178900.185200000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600880400000,"value":178900.185200000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600876800000,"value":178900.185200000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600873200000,"value":178900.185200000000000000000000000000000000},{"volume":1732.0000000000000000,"amount_type":1,"ts":1600869600000,"value":178900.185200000000000000000000000000000000},{"volume":1712.0000000000000000,"amount_type":1,"ts":1600866000000,"value":176834.363200000000000000000000000000000000},{"volume":1712.0000000000000000,"amount_type":1,"ts":1600862400000,"value":176834.363200000000000000000000000000000000},{"volume":1712.0000000000000000,"amount_type":1,"ts":1600858800000,"value":176834.363200000000000000000000000000000000},{"volume":1712.0000000000000000,"amount_type":1,"ts":1600855200000,"value":176834.363200000000000000000000000000000000},{"volume":1712.0000000000000000,"amount_type":1,"ts":1600851600000,"value":176834.363200000000000000000000000000000000},{"volume":1712.0000000000000000,"amount_type":1,"ts":1600848000000,"value":176834.363200000000000000000000000000000000}],
         * "contract_code":"BTC-USDT"
         */
        private String symbol;
        @SerializedName("contract_code")
        private String contractCode;
        private List<DataTick> tick;

        @AllArgsConstructor
        @Data
        public static class DataTick {
            /**
             * "volume": 3019.0000000000000000,
             * "amount_type": 1,
             * "ts": 1601017200000,
             * "value": 311835.830900000000000000000000000000000000
             */
            private BigDecimal volume;
            @SerializedName("amount_type")
            private Integer amountType;
            private Long ts;
        }
    }
}
